[v-cloak] {
  display: none;
}

* {
  padding: 0;
  margin: 0;
  border: 0;
  list-style: none;
  text-decoration: none;
}

body {
  background: url(./bg.jpg);
}

blockquote p {
  font-size: 14px;
}

#vue-memo {
  border: 1px solid #e1e1e1;
  box-shadow: 0 0 4px 0 #e1e1e1;
  padding: 0;
  z-index: 1;
}
.navbar {
  padding: 10px;
}
.navbar .handle {
  text-align: right;
}

#memos {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.memo-container {
  padding: 6px;
  flex: 0 0 25%;
  box-sizing: border-box;
}

.memo {
  height: 300px;
  display: flex;
  flex-direction: column;
}
.memo .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.memo .el-card__body {
  flex: 1;
}
.memo .content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.memo .text {
  flex: 1;
  font-size: 14px;
}
.memo .footer {
  font-size: 12px;
  text-align: right;
  color: gray;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cover-layer {
  top: 0;
  left: 0;
  background-color: #222;
  opacity: 0.5;
  z-index: 2;
}

.cover-layer,
.editor-layer {
  display: block;
  position: absolute;
}

.editor-layer {
  background-color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px;
  border: 1px solid #f8f8f8;
  border-radius: 3px;
  box-shadow: 0 0 6px 0 #f8f8f8;
  z-index: 3;
}

.editor-layer {
  margin-bottom: 10px;
  width: 500px;
}
.editor-top {
  position: relative;
  margin-bottom: 10px;
  width: 100%;
}

.editor-layer .editor-top .tools {
  position: absolute;
  top: 6px;
  right: 0;
}

.editor-layer .editor-top .tools > li {
  width: 20px;
  height: 20px;
  float: left;
  margin-left: 10px;
  opacity: 0.5;
  transition: opacity 0.2s ease-in-out;
}

.editor-layer .editor-top .tools > li:hover {
  cursor: pointer;
  opacity: 1;
}

.editor-layer .editor-top .tools > li.save {
  background: url(./imgs/icons/icon-save.png) no-repeat 0 0;
}

.editor-layer .editor-top .tools > li.cancel {
  background: url(./imgs/icons/icon-cancel.png) no-repeat 0 0;
}

.editor-layer .editor-top .editor-title {
  width: calc(100% - 140px);
}

html #edit-doodle .editor-title,
html #edit-markdown .editor-title {
  width: calc(100% - 60px);
}

.editor-layer .editor-top .select-category {
  position: absolute;
  right: 62px;
  top: 0;
  transition: all 0.2s ease-in-out;
}

.editor-layer .editor-top .select-category .dropdown-menu {
  min-width: 0;
}

.editor-layer .text-content {
  width: 100%;
  height: 350px;
  font-size: 12px;
  resize: none;
}
